package com.ruoyi.club.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.club.mapper.CmsClubClslevelMapper;
import com.ruoyi.club.domain.CmsClubClslevel;
import com.ruoyi.club.service.ICmsClubClslevelService;
import com.ruoyi.common.core.text.Convert;

/**
 * 俱乐部课程级别Service业务层处理
 * 
 * @author miki
 * @date 2024-10-01
 */
@Service
public class CmsClubClslevelServiceImpl implements ICmsClubClslevelService 
{
    @Autowired
    private CmsClubClslevelMapper cmsClubClslevelMapper;

    /**
     * 查询俱乐部课程级别
     * 
     * @param clslevelId 俱乐部课程级别ID
     * @return 俱乐部课程级别
     */
    @Override
    public CmsClubClslevel selectCmsClubClslevelById(Long clslevelId)
    {
        return cmsClubClslevelMapper.selectCmsClubClslevelById(clslevelId);
    }

    /**
     * 查询俱乐部课程级别列表
     * 
     * @param cmsClubClslevel 俱乐部课程级别
     * @return 俱乐部课程级别
     */
    @Override
    public List<CmsClubClslevel> selectCmsClubClslevelList(CmsClubClslevel cmsClubClslevel)
    {
        return cmsClubClslevelMapper.selectCmsClubClslevelList(cmsClubClslevel);
    }

    /**
     * 新增俱乐部课程级别
     * 
     * @param cmsClubClslevel 俱乐部课程级别
     * @return 结果
     */
    @Override
    public int insertCmsClubClslevel(CmsClubClslevel cmsClubClslevel)
    {
        return cmsClubClslevelMapper.insertCmsClubClslevel(cmsClubClslevel);
    }

    /**
     * 修改俱乐部课程级别
     * 
     * @param cmsClubClslevel 俱乐部课程级别
     * @return 结果
     */
    @Override
    public int updateCmsClubClslevel(CmsClubClslevel cmsClubClslevel)
    {
        return cmsClubClslevelMapper.updateCmsClubClslevel(cmsClubClslevel);
    }

    /**
     * 删除俱乐部课程级别对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCmsClubClslevelByIds(String ids)
    {
        return cmsClubClslevelMapper.deleteCmsClubClslevelByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除俱乐部课程级别信息
     * 
     * @param clslevelId 俱乐部课程级别ID
     * @return 结果
     */
    @Override
    public int deleteCmsClubClslevelById(Long clslevelId)
    {
        return cmsClubClslevelMapper.deleteCmsClubClslevelById(clslevelId);
    }
}
